package com.honey.service.impl;

import org.springframework.stereotype.Service;

import com.honey.entity.TwoCode;
import com.honey.service.TwoCodeService;
import com.honey.utils.MatrixToImageWriter;

@Service
public class TwoCodeServiceImpl implements TwoCodeService {

	@Override
	public void twoCodeCreate(TwoCode twoCode) {
		MatrixToImageWriter.ToCodeFile(twoCode);
	}

	@Override
	public String imgToBuf(TwoCode twoCode) {
		return MatrixToImageWriter.ToCodeBuf(twoCode);
	}

}
